package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.common.annotation.AutoFill;
import com.ruoyi.common.enums.AutoFillType;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DispatchAmountWaterMapper;
import com.ruoyi.system.domain.DispatchAmountWater;
import com.ruoyi.system.service.IDispatchAmountWaterService;

/**
 * 水量分析报Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-02
 */
@Service
public class DispatchAmountWaterServiceImpl implements IDispatchAmountWaterService 
{
    @Autowired
    private DispatchAmountWaterMapper dispatchAmountWaterMapper;

    /**
     * 查询水量分析报
     * 
     * @param amountWaterId 水量分析报主键
     * @return 水量分析报
     */
    @Override
    public DispatchAmountWater selectDispatchAmountWaterByAmountWaterId(Long amountWaterId)
    {
        return dispatchAmountWaterMapper.selectDispatchAmountWaterByAmountWaterId(amountWaterId);
    }

    /**
     * 查询水量分析报列表
     * 
     * @param dispatchAmountWater 水量分析报
     * @return 水量分析报
     */
    @Override
    public List<DispatchAmountWater> selectDispatchAmountWaterList(DispatchAmountWater dispatchAmountWater)
    {
        return dispatchAmountWaterMapper.selectDispatchAmountWaterList(dispatchAmountWater);
    }

    /**
     * 新增水量分析报
     * 
     * @param dispatchAmountWater 水量分析报
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.INSERT)
    @Override
    public int insertDispatchAmountWater(DispatchAmountWater dispatchAmountWater)
    {
        return dispatchAmountWaterMapper.insertDispatchAmountWater(dispatchAmountWater);
    }

    /**
     * 修改水量分析报
     * 
     * @param dispatchAmountWater 水量分析报
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.UPDATE)
    @Override
    public int updateDispatchAmountWater(DispatchAmountWater dispatchAmountWater)
    {
        return dispatchAmountWaterMapper.updateDispatchAmountWater(dispatchAmountWater);
    }

    /**
     * 批量删除水量分析报
     * 
     * @param amountWaterIds 需要删除的水量分析报主键
     * @return 结果
     */
    @Override
    public int deleteDispatchAmountWaterByAmountWaterIds(Long[] amountWaterIds)
    {
        return dispatchAmountWaterMapper.deleteDispatchAmountWaterByAmountWaterIds(amountWaterIds);
    }

    /**
     * 删除水量分析报信息
     * 
     * @param amountWaterId 水量分析报主键
     * @return 结果
     */
    @Override
    public int deleteDispatchAmountWaterByAmountWaterId(Long amountWaterId)
    {
        return dispatchAmountWaterMapper.deleteDispatchAmountWaterByAmountWaterId(amountWaterId);
    }
}
